<script setup lang="ts">
import { ToastTypeEnum } from '@/types/enum';
import { onMounted, ref } from 'vue';
const uToastRef = ref(null);
const showToast = (message: String, type: ToastTypeEnum = ToastTypeEnum.DEFAULT) => {
  uToastRef.value?.show({
    type,
    message,
    duration: 2000,
  });
}

defineExpose({
  showToast,
})
</script>

<template>
  <up-toast ref="uToastRef"></up-toast>
  <!-- <view>123123123</view> -->
</template>
